package net.godideas.giframework.mvp;

import android.app.Dialog;
import android.content.Context;
import android.widget.Toast;

public class BaseDialog extends Dialog implements IView {

	
	/**
	 * Constructor
	 * @param context
	 */
	public BaseDialog(Context context) {
		super(context);
	}

	/**
	 * Constructor
	 * @param context
	 * @param theme
	 */
	public BaseDialog(Context context, int theme) {
		super(context, theme);
	}

	/**
	 * Constructor
	 * @param context
	 * @param cancelable
	 * @param cancelListener
	 */
	public BaseDialog(Context context, boolean cancelable,
			OnCancelListener cancelListener) {
		super(context, cancelable, cancelListener);
	}
	
	@Override
	public void showToast(String text) {
		Toast.makeText(this.getContext(), text, Toast.LENGTH_SHORT).show();
	}

}